// ----------------------------------------------------------------------------
// Include the main OGRE header files
// Ogre.h just expands to including lots of individual OGRE header files
// ----------------------------------------------------------------------------

#include "Core.h"
#include "BulletTestState.h"


using namespace pong;

int main(int argc, char** args) {
    int ret = -1;
    if (argc > 1) {
        std::cout << "Host name: " << args[1] << std::endl;
    }
	try {
		BulletTestState btTest;

		Core engine;

		ret = engine.run(argc, args);
	}
	catch (Ogre::Exception& e) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
        std::cerr << "An exception has occured: " <<
                     e.getFullDescription().c_str() << std::endl;
#endif
	}

    return ret;
}
